package com.qf.service.impl;

import com.qf.entity.Comment;
import com.qf.mapper.CommentMapper;
import com.qf.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//评论业务逻辑层
@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentMapper commentMapper;
    /**
     * 通过商家的id去查询评论表
     * @return
     */
    @Override
    public List<Comment> selCommnetByMid(Integer m_id) {
        return commentMapper.selCommnetByMid(m_id);
    }
}
